//=============================================================================
// TFMinerals.
//=============================================================================

class TFMinerals extends GameObjective
	placeable;

var TFStation TFS;
var Pawn Near;

simulated function PreBeginPlay()
{
    //if(effectisrelevant(location,false))
    //{
        spawn(class'TaskForces.TFMineralFX');
	    spawn(class'TaskForces.TFMineralGlow');
	//}
	settimer(10,true);
}


function Timer()
{
    local pawn p;
    local controller c;
    for ( c = Level.ControllerList; c!=None; c=c.nextController )
    {
        p=c.Pawn;
        if(p!=none && Sentinel(p) == none && p.Health>0 && vsize(p.location-location)<196 && p.PlayerReplicationInfo!= none)
        {
            tfpri(p.PlayerReplicationInfo).AddRES(50);
            PlaySound(sound'PickupSounds.LinkAmmoPickup',SLOT_None,0.3);
        }
    }
}


defaultproperties
{
     DestructionMessage=""
     ObjectiveStringSuffix=" Minerals"
     DrawType=DT_None
     bStatic=False
     bHidden=False
     bNoDelete=False
     bDynamicLight=True
     bAcceptsProjectors=False
     bAlwaysRelevant=True
     AmbientSound=Sound'TFMedia.Misc.TFMineralAmb'
     bStaticLighting=True
     bGameRelevant=True
     bFullVolume=True
     SoundVolume=128
     SoundRadius=128.000000
     TransientSoundVolume=0.200000
     TransientSoundRadius=128.000000
     CollisionRadius=20.000000
     CollisionHeight=20.000000
     bCollideActors=True
     bBlockActors=True
     bBlockPlayers=True
     bProjTarget=True
     bUseCylinderCollision=True
     bBlockKarma=True
     bNetNotify=True
     bNetInitial=True
     bPathColliding=True
}
